<?php

namespace app\common\validate;

use think\Validate;

class Order extends Validate
{
    protected $rule = [
        ['id', 'require', '参数错误'],
        ['deal_count', 'require|gt:0', '请选择数量|数量不能为空'],
        ['total_price', 'require|gt:0', '价格错误|价格不能为0']
    ];
    protected $scene = [
        'index' => [
            'id', 'deal_count', 'total_price'
        ],
    ];
}